package com.cskaoyan.controller;

import com.cskaoyan.bean.vo.BaseRespVo;
import com.cskaoyan.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wx/goods")
public class WxGoodsController {
    @Autowired
    GoodsService goodsService;
    @GetMapping("/count")
    public BaseRespVo countGoods(){
        Integer allGoodsCount = goodsService.getAllGoodsCount();
        return BaseRespVo.ok(allGoodsCount);
    }
    @GetMapping("/index")
    public BaseRespVo indexGoods(){
        return null;
    }
    @GetMapping("/detail")
    public BaseRespVo detailGoods(Integer id){
        return null;


    }
}
